Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce managed query execution on Driver level #1330

Merged
merged 2 commits into from
Jan 23, 2023

Conversation

injectives
Copy link
Contributor

This is a new basic high-level API for executing idempotent queries.

@injectives injectives requested a review from gjmwoods October 31, 2022 14:44
@injectives injectives force-pushed the feature/execute-query-api branch 5 times, most recently from 24756ef to ff1f4fd Compare January 11, 2023 22:51
@injectives injectives removed the request for review from gjmwoods January 17, 2023 00:16
@injectives injectives marked this pull request as draft January 17, 2023 00:16
Copy link
Contributor

@michael-simons michael-simons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree on your slack remark this being too many overloads. However, it feels more natural to me not having the transformer as part of the config.
I would most like go with

  • Having only Query objects in the simple api
  • Adding of method to Query class, such as Query.of(cypher) and Query.of(cypher, params), so that it is still nicely readable

I don't really understand the "Having a single object that would capture both the collector and the result summary handler." remark, but I feel like I don't want this, it's more cruft.

@michael-simons
Copy link
Contributor

Oh, adding some heresy… execute(query) instead of executeQuery(query)` :D

@injectives injectives force-pushed the feature/execute-query-api branch from e3efcdc to d6c0bcc Compare January 22, 2023 23:43
@injectives injectives changed the title Introduce executeQuery on Driver level Introduce managed query execution on Driver level Jan 22, 2023
@injectives injectives force-pushed the feature/execute-query-api branch 2 times, most recently from 0f04c03 to a08bbb2 Compare January 22, 2023 23:47
This is a new basic high-level API for executing idempotent queries.
@injectives injectives force-pushed the feature/execute-query-api branch from a08bbb2 to 01fccf0 Compare January 22, 2023 23:52
@injectives injectives marked this pull request as ready for review January 23, 2023 00:02
@injectives injectives requested a review from gjmwoods January 23, 2023 09:31
Copy link
Contributor

@michael-simons michael-simons left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very good to me. I like the naming choice.

@injectives injectives merged commit 361e779 into neo4j:5.0 Jan 23, 2023
@injectives injectives deleted the feature/execute-query-api branch January 23, 2023 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants